/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sdc.event;

import sdc.net.server.comp.ComponentServer;
import sdc.net.server.comp.ComponentServerManager;
import sdc.net.server.comp.ComponentServerManager;

/**
 *
 * @author yokoe
 */
public class ComponentServerFailureEvent extends Event
{

	public ComponentServerFailureEvent(double eventTime)
	{
		super(eventTime);
	}


	@Override
	public void fire()
	{
		ComponentServerManager manager = ComponentServerManager.INSTANCE;

		//failure occurs to just one server
		ComponentServer failedServer = manager.getShuffledList(1).get(0);

		failedServer.failure();
	}
}
